import mockJS from "mockjs";
const list = mockJS.mock({
  // 生成100条数据
  "data|100": [
    {
      id: "@id",
      avatar: '@image("100x100")',
      title: "@ctitle(3,10)",
      content: "@ctitle(10,40)",
      createTime: "@datetime()",
      status: "@integer(0,1)",
      type: "@integer(1,3)",
    },
  ],
});

export default [
  {
    method: "get",
    url: "/api/getData",
    response: () => {
      return {
        code: 10000,
        message: "模拟数据成功",
        list,
      };
    },
  },
];
